package com.qf.smartplatform.mapper;

import com.qf.smartplatform.pojo.SysUserInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    void addUser(SysUserInfo sysUserInfo);

    List<SysUserInfo> findByUserNamePhoneEmail(@Param("username") String username, @Param("phone")String phone, @Param("email")String email);
    @Select("select * from sys_user_info where username = #{username}")
    SysUserInfo findByName(@Param("username") String username);

    void updateLoginDataByUid(@Param("uid") Long uId, @Param("ip") String ip);
}
